<template>
    <el-button type="primary" @click="handleQuery">
        <template #icon>
            <i-ep-search/>
        </template>
        搜索
    </el-button>
    <el-button v-if="isShow" @click="resetQuery">
        <template #icon>
            <i-ep-refresh/>
        </template>
        重置
    </el-button>
</template>

<script lang="ts" setup>
const emits = defineEmits(["handleQuery", "resetQuery"])

const props = defineProps({
    isShow: {
        type: Boolean,
        default: true
    }
})

function handleQuery() {
    emits("handleQuery")
}

function resetQuery() {
    emits("resetQuery")
}
</script>
